<template>
  <div class="right-container">
    <h3>Right 组件---{{ count }}</h3>
    <button @click="count +=1 ">+1</button>
  </div>
</template>

<script>
export default {
  name:'MyRight',
  data(){
    return {
      count:0
    }
  },
  created(){
    console.log('创建Right组件');
  },
  destroyed(){
    console.log('销毁Right组件');
  },
  activated(){
    console.log('Right组件被激活了');
  },
  deactivated(){
    console.log('Right组件 被缓存了');
  }
}
</script>

<style lang="less">
.right-container {
  padding: 0 20px 20px;
  background-color: lightskyblue;
  min-height: 250px;
  flex: 1;
}
</style>
